/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package symbol;

/**
 *
 * @author Benoit
 */
public class ObjectState {
    
    private String type;
    
    public ObjectState(String type){
        this.setType(type);
    }

    @Override
    public String toString() {
        return "ObjectState{" + "type=" + type + '}';
    }
    
    public ObjectState(){
        
    }
    
    public void setType(String type){
        if(type.length()>2){
            if(type.substring(0,3).equals("new")) type = type.replaceAll("new","");
        }
        this.type = type;
    }
    
    public String getType(){
        return this.type;
    }
}
